<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>		
		<script>
			window.onload = function()
			{
				let input = document.querySelector('input');
				let btn = document.querySelector('button');
				let ul = document.querySelector('ul');
				
				btn.onclick = function()
				{
					let inner = input.value;
					
					ul.innerHTML = `<li>${inner}</li>` +  ul.innerHTML;
				}
			}
		</script>
	</head>
	<body>
		<input type="text"/>
		<button>发布</button>
		<ul>
			
		</ul>
	</body>
</html>